<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>get_stock_list</title>
</head>
<body>



<table border="1">
    <tr bgcolor="yellow">
        <th>上一个交易日</th>
        <th>股票名称</th>
        <th>收盘价</th>
        <th>{{days}}以内最低日期</th>
        <th>最低价</th>
        <th>百分比</th>
    </tr>
        {% for stock_strans in stock_trans_list %}
        {%if stock_strans.id == 0 %}
            <tr bgcolor="#add8e6">
        {%else%}
            <tr>
        {%endif%}

        <th width=auto>{{stock_strans.riQi}}</th>
        <th>{{stock_strans.guPiaoName}}</th>
        <th >{{stock_strans.shouPan}}</th>
        {% for zuidi in zuidi_list %}
        {%if zuidi.guPiaoCode == stock_strans.guPiaoCode%}
        <th width=auto>{{zuidi.riQi}}</th>
        <th  width=auto>{{zuidi.zuiDi}}</th>
        {%endif%}
        {% endfor %}
        {% for cal_data in cal_datas %}
        {%if cal_data.guPiaoCode == stock_strans.guPiaoCode%}
        <th style="color:orangered"  width=auto>{{cal_data.up_percent}}</th>
        {%endif%}
        {% endfor %}

    </tr>
    {% endfor %}


</table>

</body>
</html>